import axios from '../http/axios'

export const getList = params => {
  return axios.get(`/financing/order?page=${params.page}&size=${params.size}&type=${params.type}`)
}

export const apiGetOrderBitStatus = companyApplyId => {
  return axios.get(`/financing/order/bit/status?companyApplyId=${companyApplyId}`)
}
export const getOrderBit = id => axios.get(`/financing/order/bit?companyApplyId=${id}`)

export const postOrder = params => axios.post('/financing/order', params)

export const getDetail = id => axios.get(`/financing/order/${id}`)

export const postOrderAccept = params => axios.post('/financing/order/accept', params)